package com.sk.bilibili.view.fragment.search;

import android.util.Log;

import androidx.viewbinding.ViewBinding;

import com.sk.bilibili.adapter.pager.search.SearchFragmentAdapter;
import com.sk.bilibili.adapter.vlayout.BaseCollectionAdapter;
import com.sk.bilibili.adapter.vlayout.videoSet.introduction.RecommendAdapter;
import com.sk.bilibili.bean.VideoSet;
import com.sk.bilibili.callBack.FullVideoSetCallBack;
import com.sk.bilibili.model.fragment.search.VideoSetModel;
import com.sk.bilibili.view.activity.MemberActivity;
import com.sk.bilibili.view.activity.VideoSetActivity;
import com.sk.bilibili.view.diy.bottomDialog.LaterBottomDialog;


public class VideoSetFragment extends BaseSearchFragment<VideoSetModel, VideoSet> implements FullVideoSetCallBack {

    public VideoSetFragment(SearchFragmentAdapter parent,int pos) {
        super(parent,pos);
        laterBottomDialog=new LaterBottomDialog();
    }

    private LaterBottomDialog laterBottomDialog;

    @Override
    protected BaseCollectionAdapter<? extends ViewBinding, VideoSet> getAdapter() {
        return new RecommendAdapter(getContext(),this);
    }

    @Override
    public void onClickMember(Integer id) {
        MemberActivity.start(getContext(),id);
    }

    @Override
    public void onClickMore(Integer id) {
        laterBottomDialog.show(getChildFragmentManager(),id);
    }

    @Override
    public void onClickVideoSet(Integer id) {
        VideoSetActivity.start(getContext(),id);
    }

}